package com.pureut.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.quality.domain.QualityInspectionManagement;
import com.pureut.quality.domain.dto.QualityInspectionManagementDto;
import com.pureut.quality.domain.vo.InspectionMarkVo;
import com.pureut.quality.domain.vo.OrderReviewVo;
import com.pureut.quality.domain.vo.QualityInspectionManagementVo;

import java.text.ParseException;
import java.util.List;

/***
 * 免检管理service
 * Author:C
 * Date:2023/02/03 13:54
 * @DESC
 */
public interface QualityInspectionManagementService extends IService<QualityInspectionManagement> {

    /**
     * 免检管理列表
     */
    List<QualityInspectionManagementDto> getManagementList(QualityInspectionManagementVo qualityInspectionManagementVo);

    /**
     * 新增
     */
    boolean add(QualityInspectionManagementVo qualityInspectionManagementVo) throws Exception;

    /**
     * 查看
     */
    QualityInspectionManagementDto getViewById(long id);

    /**
     * 修改
     */
    boolean updateManagement(QualityInspectionManagementVo qualityInspectionManagementVo);

    /**
     * 删除
     */
    boolean delete(String idStr);

    /**
     * 审核
     */
    boolean managementReview(OrderReviewVo orderReviewVo) throws ParseException;

    /**
     * 终止
     */
    boolean stop(String idStr);

    /**
     * 根据供应商加物料编码/加工商加物料编码获取物料免检状态（feign调用）
     */
    QualityInspectionManagementDto getInspectionMark(InspectionMarkVo inspectionMarkVo);
}
